package routers

import (
	"fmt"
	"github.com/beego/beego/v2/server/web"
	"goweb/controllers"
)

func init() {
	fmt.Println("init routes")
	web.Router("/register", &controllers.UserController{}, "POST:Reg")
	web.Router("/register/sendMessageCode", &controllers.UserController{}, "GET:SendMessageCode")
	web.Router("/test", &controllers.UserController{}, "GET:Test")
}
